package cn.mesmile.es.entity;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @author zb
 * @date 2021/6/7 20:19
 * @Description:
 */
@Data
public class Author implements Serializable {

    private static final long serialVersionUID = 1L;

    @Field(type= FieldType.Text, analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    private String authorDescription;

    @Field(type= FieldType.Boolean)
    private Boolean isAuthorPublic;

}
